<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="销售日报表" />
<%@ include file="../inc/PrintTitle.jsp"%>
<head>
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doPrint(){
		ShowConfirm('确认框','确定开始打印吗？',340,80,"doPrintCallBack()");
	}
	function doPrintCallBack(){
		if(popRetVal!=null){
			document.getElementById("noPrinSpan").style.display="none";
			printContent("管理易-销售日报表","${enterpriseInfo.doPrint}","${enterpriseInfo.printWidth}");
			document.getElementById("noPrinSpan").style.display="";
		}
	}
</script>
</head>
<body style="background-color:#FFFFFF">
<table width="100%" border="0"  align="center" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td height="40px" align="center" class="FontLarge_Bold">${licenseInfo.enterpriseName} 销售日报表</td>
				</tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>	
	<tr>
		<td>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="ListTable">
				<tr class="ListTrPrint">
			      	<td class="FontSmall" >
						账套：
						<c:if test="${tsId==null || tsId=='' || tsId=='0'}">全部账套</c:if>
						<c:if test="${tsId!=null && tsId!='' && tsId!='0'}"><commonTag:showSimpleObjectName list="${tsList}" objectId="${tsId}" /></c:if>
						&nbsp;&nbsp;
						起止日期：${startDate}至${endDate}
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="small_border">
				<tr class="ListTrPrint">
					<td width="50%" class="FontSmall" align="left">
						&nbsp;&nbsp;合同金额：${salTotal}
						<br><br>
						&nbsp;&nbsp;------&nbsp;当期应收款：${busTotal}
						<br><br>
						&nbsp;&nbsp;------&nbsp;合同单数：${busCount}笔
						<br><br>
					</td>
					<td width="50%" class="FontSmall" align="left">
						&nbsp;&nbsp;回款金额：${backTotal}
						<br><br>
						&nbsp;&nbsp;------&nbsp;预付金额：${impTotal}&nbsp;&nbsp;预付单数：${impCount}笔
						<br><br>
						&nbsp;&nbsp;------&nbsp;结欠金额：${recTotal}&nbsp;&nbsp;结欠单数：${recCount}笔
						<br><br>
					</td>
				</tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="ListTable">
				<tr class="ListTrPrint">
			      	<td class="FontSmall" >
						打印人：${currentUser.staffer.stafferName}&nbsp;&nbsp;打印时间：<fmt:formatDate value="${currentTime}" pattern="yyyy-MM-dd HH:mm"/>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr id="noPrinSpan">
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td>
						<input type="button" id="printButton" class="Button" value="开始打印 " onClick="doPrint();">
						<input type="button" id="cancelButton" class="Button" value=" 退 出 " onClick="doCancel();">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>